package com.zgw.his.design.model;

public class DatasetItem {
	private Dataset parent;
	Bind bind;
	private String name;
	private int type;
	private int length;
	private int precision;
	private String describe;
	boolean toTarget;
	boolean toModel;

	public DatasetItem(Dataset parent) {
		this.parent = parent;
	}

	public Bind getBind() {
		return bind;
	}

	public void setBind(Bind bind) {
		this.bind = bind;
	}

	public Dataset getParent() {
		return parent;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isToTarget() {
		return toTarget;
	}

	public void setToTarget(boolean toTarget) {
		this.toTarget = toTarget;
	}

	public boolean isToModel() {
		return toModel;
	}

	public void setToModel(boolean toModel) {
		this.toModel = toModel;
	}

	public Object getBindObj() {
		return bind == null ? null : bind.bindObj;
	}

	public String getBindProperty() {
		return bind == null ? null : bind.bindProperty;
	}

	public int getEvent() {
		return bind == null ? null : bind.event;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public int getPrecision() {
		return precision;
	}

	public void setPrecision(int precision) {
		this.precision = precision;
	}

	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}

	public void setParent(Dataset parent) {
		this.parent = parent;
	}

}
